/*
//	CP2013 Traffic Simulator Assignment :: (MVC) Model :: Vehicle Class
//	Copyright (c) 2010, Adam Rehn
//
//	This class models a vehicle such as a car or truck.
*/

#ifndef _MODEL_VEHICLE_H
#define _MODEL_VEHICLE_H

//Required for the common enums and types
#include "common.h"

//Vehicle derives from rectangle
#include "rectangle.h"

class vehicle : public rectangle
{
	public:
		direction_t   direction;
		unsigned char speed;
		unsigned char colour;
};

bool operator<(const vehicle& left, const vehicle& right);
bool operator>(const vehicle& left, const vehicle& right);

bool isFaster(const vehicle& left, const vehicle& right);
bool isSlower(const vehicle& left, const vehicle& right);

#endif
